package com.whacos.common.utils;

import com.whacos.common.entity.ScheduleJob;
import com.whacos.modules.system.entity.SysTask;

/**
 * @author xiongdun
 * @description 查询参数
 * @since 2018/11/17 17:11
 */
public class ScheduleJobUtils {

    /**
     * 将实体转换为数据
     * @param scheduleJobEntity 定时任务实体
     * @return 定时任务
     */
	public static ScheduleJob entityToData(SysTask scheduleJobEntity) {
		ScheduleJob scheduleJob = new ScheduleJob();
//		scheduleJob.setBeanClass(scheduleJobEntity.getBeanClass());
//		scheduleJob.setCronExpression(scheduleJobEntity.getCronExpression());
//		scheduleJob.setJobName(scheduleJobEntity.getTaskName());
//		scheduleJob.setJobGroup(scheduleJobEntity.getJobGroup());
//		scheduleJob.setJobStatus(scheduleJobEntity.getJobStatus());
//		scheduleJob.setMethodName(scheduleJobEntity.getMethodName());
//		scheduleJob.setSpringBean(scheduleJobEntity.getSpringBean());
		return scheduleJob;
	}
}